import request from '@/utils/request'
export function Getlist(data) { // 应用支付渠道-查询
  return request({
    url: '/pay-center/pcs-app-channel/search',
    method: 'get',
    params: data
  })
}

export function getpay_appId() { // 应用-查询（分页）
  return request({
    url: '/pay-center/pcs-application/search',
    method: 'get'
  })
}

export function getpay_channelId() { // 支付渠道列表（系统支持的）
  return request({
    url: '/pay-center/pcs-app-channel/support-channels',
    method: 'get'
  })
}

export function search_app(id) { // 应用支付渠道-查询
  return request({
    url: '/pay-center/pcs-app-channel/search',
    method: 'get',
    params: id
  })
}
// /pay-center/pcs-app-channel
export function addApp(data,method) {
  return request({
    url: '/pay-center/pcs-app-channel',
    method: method,
    data
  })
}

export function setStatus(data) {
  return request({
    url: '/pay-center/pcs-app-channel/status',
    method: 'post',
    data
  })
}

export function delApp(data) {
  return request({
    url: '/pay-center/pcs-app-channel',
    method: 'DELETE',
    data
  })
}

